﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class User_ReaderLendingRight : System.Web.UI.Page
{
    public string idfy = "", booknum = "", xujietimes = "";
    protected void Page_Load(object sender, EventArgs e)
    {

       
        if (Session["userName"] != null)
        {
            SQL sql = new SQL();
            string type = sql.getDataFormTable("ReaderType", "reader_info", "readerid", Session["userName"].ToString(), "", "", "", "", 1);
            idfy = sql.getDataFormTable("TypeName", "Reader_Type", "ReaderType", type, "", "", "", "", 1);
            booknum = sql.getDataFormTable("MAXLEND", "Reader_Type", "ReaderType", type, "", "", "", "", 1);
            xujietimes = "3";
        }
        else
        {
            Response.Write("<script language=javascript>alert('您还没有登陆');window.location = '../Common/BMindex.aspx';</script>");
        }
    }
}